package com.corpgovernment.common.linktrace;

import com.ctrip.corp.obt.generic.core.context.RequestContext;

/**
 * @author ldma
 * @date 2023/12/19
 */
public class HttpLinkTraceHolder {

    private static final String HTTP_LINK_TRACE = "httpLinkTrace";
    public static Boolean getHttpLinkTrace(){
        return (Boolean) RequestContext.getCurrentContext().getContextParams(HTTP_LINK_TRACE);
    }

    public static void setHttpLinkTrace(Boolean httpLinkTrace){
        RequestContext.getCurrentContext().addContextParams(HTTP_LINK_TRACE, httpLinkTrace);
    }

}
